package com.demo.ssy.controller;

import javax.servlet.http.HttpServletRequest;

import com.demo.ssy.model.ModelInjector;


public class BaseController {

	/**
	 * Get model from http request.
	 */
	@SuppressWarnings("unchecked")
	public <T> T getModel(Class<T> modelClass,HttpServletRequest request) {
		return (T)ModelInjector.inject(modelClass, request, false);
	}
	
}
